// utils/mockData.js - 集中管理模拟数据

/**
 * 消息列表模拟数据
 */
export const messageListData = [
  {
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '美食达人小王'
    },
    content: '你好！我看到你分享的红烧肉做法，看起来很不错，能详细教教我吗？',
    time: '10:30',
    unread: 2
  },
  {
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '著名中医'
    },
    content: '关于你咨询的养生问题，我建议你可以试试枸杞银耳汤，有润肺养颜的功效。',
    time: '09:15',
    unread: 1
  },
  {
    author: {
      avatar: '/assets/images/avatar3.jpg',
      name: '内科医生'
    },
    content: '你的体检报告我已经看过了，各项指标都正常，继续保持良好的生活习惯。',
    time: '昨天',
    unread: 0
  },
  {
    author: {
      avatar: '/assets/images/avatar3.jpg',
      name: '李时珍'
    },
    content: '当归炖鸡的做法我已经整理好了，这个药膳对女性特别有益，可以补血养气。',
    time: '昨天',
    unread: 0
  },
  {
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '华佗'
    },
    content: '感谢你分享的养生知识，我也学到了很多，希望我们能够继续交流。',
    time: '2天前',
    unread: 0
  },
  {
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '营养师小李'
    },
    content: '你最近分享的减脂餐搭配很科学，蛋白质和蔬菜的比例刚好，值得推荐！',
    time: '3天前',
    unread: 0
  },
  {
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '烘焙达人'
    },
    content: '你做的蛋糕看起来太棒了！能分享一下制作技巧吗？特别是奶油打发的方法。',
    time: '1周前',
    unread: 0
  },
  {
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '美食达人小王'
    },
    content: '你好！我看到你分享的红烧肉做法，看起来很不错，能详细教教我吗？',
    time: '10:30',
    unread: 2
  },
  {
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '美食达人小王'
    },
    content: '你好！我看到你分享的红烧肉做法，看起来很不错，能详细教教我吗？',
    time: '10:30',
    unread: 2
  },
  {
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '美食达人小王'
    },
    content: '你好！我看到你分享的红烧肉做法，看起来很不错，能详细教教我吗？',
    time: '10:30',
    unread: 2
  },
];

/**
 * 推荐菜谱模拟数据
 */
export const recommendData = [
  {
    image: '/assets/images/recipe1.jpg',
    title: '炖猪脚',
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '古典美人美食'
    }
  },
  {
    image: '/assets/images/recipe2.jpg',
    title: '性价比王者牛排边角料',
    desc: '1/3价格get顶级品质美味'
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe4.jpg',
    title: '青椒肉丝',
    author: {
      avatar: '/assets/images/avatar3.jpg',
      name: '川菜师傅'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '每年的年夜饭我都会做这',
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '古典美人美食'
    }
  },
  {
    image: '/assets/images/recipe2.jpg',
    title: '性价比王者牛排边角料',
    desc: '1/3价格get顶级品质美味'
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe4.jpg',
    title: '青椒肉丝',
    author: {
      avatar: '/assets/images/avatar3.jpg',
      name: '川菜师傅'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '炖猪脚',
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '古典美人美食'
    }
  },
  {
    image: '/assets/images/recipe2.jpg',
    title: '性价比王者牛排边角料',
    desc: '1/3价格get顶级品质美味'
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe4.jpg',
    title: '青椒肉丝',
    author: {
      avatar: '/assets/images/avatar3.jpg',
      name: '川菜师傅'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '红烧茄子',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '家常菜达人'
    }
  }
];

/**
 * 热门菜谱模拟数据
 */
export const hotData = [
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  },
  {
    image: '/assets/images/recipe2.jpg',
    title: '网红蛋糕',
    views: '8.9万',
    likes: '2.1万'
  },
  {
    image: '/assets/images/recipe3.jpg',
    title: '快手早餐',
    views: '5.6万',
    likes: '1.3万'
  },
  {
    image: '/assets/images/recipe4.jpg',
    title: '减脂餐',
    views: '3.2万',
    likes: '987'
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  },
  {
    image: '/assets/images/recipe1.jpg',
    title: '爆款红烧肉',
    views: '1.2万',
    likes: '856'
  }
];

/**
 * 分类数据
 */
export const categoryData = [
  { icon: '🍳', name: '家常菜' },
  { icon: '🥘', name: '汤品' },
  { icon: '🍰', name: '甜品' },
  { icon: '🥗', name: '沙拉' },
  { icon: '🍜', name: '面食' },
  { icon: '🍲', name: '火锅' },
  { icon: '🍱', name: '便当' },
  { icon: '🍕', name: '西餐' }
];

/**
 * 分享数据
 */
export const shareData = [
  {
    image: '/assets/images/recipe1.jpg',
    title: '妈妈的拿手菜',
    author: {
      avatar: '/assets/images/avatar1.jpg',
      name: '美食达人小王'
    }
  },
  {
    image: '/assets/images/recipe2.jpg',
    title: '简单易做的蛋糕',
    author: {
      avatar: '/assets/images/avatar2.jpg',
      name: '烘焙爱好者'
    }
  }
];

/**
 * 药膳数据
 */
export const medicineData = [
  {
    image: '/assets/images/recipe1.jpg',
    title: '枸杞银耳汤',
    effect: '润肺养颜，滋阴润燥',
    tags: ['润肺', '养颜', '滋阴']
  },
  {
    image: '/assets/images/recipe2.jpg',
    title: '当归炖鸡',
    effect: '补血养气，温中补虚',
    tags: ['补血', '养气', '温补']
  }
];

/**
 * 导航标签数据
 */
export const navTabsData = [
  { name: '热门' },
  { name: '推荐' },
  { name: '分类' }
];



/**
 * 对话消息数据
 */
export const dialogMessagesData = {
  '美食达人小王': [
    {
      id: 1,
      type: 'received',
      content: '你好！我看到你分享的红烧肉做法，看起来很不错，能详细教教我吗？',
      time: '10:30',
      avatar: '/assets/images/avatar1.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '当然可以！红烧肉其实不难做，关键是要掌握好火候和调料的配比。',
      time: '10:32',
      avatar: '/assets/images/my-avatar.jpg'
    },
    {
      id: 3,
      type: 'received',
      content: '那具体需要哪些调料呢？我家里只有基本的生抽、老抽、料酒。',
      time: '10:35',
      avatar: '/assets/images/avatar1.jpg'
    },
    {
      id: 4,
      type: 'sent',
      content: '这些基本调料就够了！还需要冰糖、八角、香叶、葱姜蒜。冰糖是上色的关键，八角香叶增香。',
      time: '10:37',
      avatar: '/assets/images/my-avatar.jpg'
    },
    {
      id: 5,
      type: 'received',
      content: '好的，我记下了。那制作步骤是怎样的？',
      time: '10:40',
      avatar: '/assets/images/avatar1.jpg'
    },
    {
      id: 6,
      type: 'sent',
      content: '步骤很简单：1.五花肉切块焯水 2.炒糖色 3.下肉块炒制 4.加调料炖煮40分钟 5.收汁即可',
      time: '10:42',
      avatar: '/assets/images/my-avatar.jpg'
    },
    {
      id: 7,
      type: 'received',
      content: '太感谢了！我今晚就试试，有问题再请教你😊',
      time: '10:45',
      avatar: '/assets/images/avatar1.jpg'
    }
  ],
  '著名中医': [
    {
      id: 1,
      type: 'received',
      content: '关于你咨询的养生问题，我建议你可以试试枸杞银耳汤，有润肺养颜的功效。',
      time: '09:15',
      avatar: '/assets/images/avatar2.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '谢谢医生！这个汤适合什么季节喝呢？',
      time: '09:18',
      avatar: '/assets/images/my-avatar.jpg'
    },
    {
      id: 3,
      type: 'received',
      content: '春秋季节最适合，现在这个季节喝也很好。银耳滋阴润燥，枸杞补肝肾，对女性特别有益。',
      time: '09:20',
      avatar: '/assets/images/avatar2.jpg'
    },
    {
      id: 4,
      type: 'sent',
      content: '那需要加冰糖吗？',
      time: '09:22',
      avatar: '/assets/images/my-avatar.jpg'
    },
    {
      id: 5,
      type: 'received',
      content: '可以加少量冰糖，但不要太多。银耳本身有淡淡的甜味，冰糖主要是调味作用。',
      time: '09:25',
      avatar: '/assets/images/avatar2.jpg'
    }
  ],
  '内科医生': [
    {
      id: 1,
      type: 'received',
      content: '你的体检报告我已经看过了，各项指标都正常，继续保持良好的生活习惯。',
      time: '昨天',
      avatar: '/assets/images/avatar3.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '谢谢医生！那我需要注意什么吗？',
      time: '昨天',
      avatar: '/assets/images/my-avatar.jpg'
    },
    {
      id: 3,
      type: 'received',
      content: '继续保持规律作息，适量运动，饮食清淡。你的血压血糖都在正常范围内，很不错。',
      time: '昨天',
      avatar: '/assets/images/avatar3.jpg'
    }
  ],
  '李时珍': [
    {
      id: 1,
      type: 'received',
      content: '当归炖鸡的做法我已经整理好了，这个药膳对女性特别有益，可以补血养气。',
      time: '昨天',
      avatar: '/assets/images/avatar3.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '请问当归需要多少量？',
      time: '昨天',
      avatar: '/assets/images/my-avatar.jpg'
    },
    {
      id: 3,
      type: 'received',
      content: '当归10-15克就够了，不要放太多。配合红枣、枸杞一起炖，效果更好。',
      time: '昨天',
      avatar: '/assets/images/avatar3.jpg'
    }
  ],
  '华佗': [
    {
      id: 1,
      type: 'received',
      content: '感谢你分享的养生知识，我也学到了很多，希望我们能够继续交流。',
      time: '2天前',
      avatar: '/assets/images/avatar2.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '互相学习！您的经验也很宝贵',
      time: '2天前',
      avatar: '/assets/images/my-avatar.jpg'
    }
  ],
  '营养师小李': [
    {
      id: 1,
      type: 'received',
      content: '你最近分享的减脂餐搭配很科学，蛋白质和蔬菜的比例刚好，值得推荐！',
      time: '3天前',
      avatar: '/assets/images/avatar1.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '谢谢认可！减脂期间确实要注意营养均衡',
      time: '3天前',
      avatar: '/assets/images/my-avatar.jpg'
    }
  ],
  '烘焙达人': [
    {
      id: 1,
      type: 'received',
      content: '你做的蛋糕看起来太棒了！能分享一下制作技巧吗？特别是奶油打发的方法。',
      time: '1周前',
      avatar: '/assets/images/avatar2.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '奶油打发要低温，先慢速再快速，打到8分状态最好',
      time: '1周前',
      avatar: '/assets/images/my-avatar.jpg'
    }
  ],
  '营养师小李': [
    {
      id: 1,
      type: 'received',
      content: '你最近分享的减脂餐搭配很科学，蛋白质和蔬菜的比例刚好，值得推荐！',
      time: '3天前',
      avatar: '/assets/images/avatar1.jpg'
    },
    {
      id: 2,
      type: 'sent',
      content: '谢谢认可！减脂期间确实要注意营养均衡',
      time: '3天前',
      avatar: '/assets/images/my-avatar.jpg'
    }
  ],
};

/**
 * 常见食材 - 每克营养素含量（g/g），由每100g换算而来
 * 数据综合《中国食物成分表》及营养学研究，实际会随产地/加工有差异
 */
export const nutritionPerGram = {
  // 一、蛋白质类
  '鸡蛋': { protein: 0.13, fat: 0.12, carbs: 0.07 },
  '鸡胸肉': { protein: 0.20, fat: 0.05, carbs: 0.00 },
  '三文鱼': { protein: 0.18, fat: 0.12, carbs: 0.00 },
  '牛奶': { protein: 0.03, fat: 0.03, carbs: 0.05 },
  '黄豆': { protein: 0.35, fat: 0.16, carbs: 0.25 },

  // 二、蔬菜类
  '菠菜': { protein: 0.02, fat: 0.00, carbs: 0.02 },
  '西兰花': { protein: 0.03, fat: 0.01, carbs: 0.04 },
  '番茄': { protein: 0.01, fat: 0.00, carbs: 0.04 },
  '胡萝卜': { protein: 0.01, fat: 0.00, carbs: 0.10 },

  // 三、水果类
  '苹果': { protein: 0.002, fat: 0.006, carbs: 0.15 },
  '香蕉': { protein: 0.012, fat: 0.006, carbs: 0.20 },
  '蓝莓': { protein: 0.008, fat: 0.003, carbs: 0.10 },
  '橙子': { protein: 0.006, fat: 0.003, carbs: 0.09 },

  // 四、谷物类
  '大米': { protein: 0.075, fat: 0.005, carbs: 0.79 },
  '燕麦': { protein: 0.15, fat: 0.07, carbs: 0.65 },
  '全麦粉': { protein: 0.12, fat: 0.05, carbs: 0.73 },

  // 五、乳制品
  '全脂牛奶': { protein: 0.03, fat: 0.03, carbs: 0.05 },
  '奶酪': { protein: 0.25, fat: 0.28, carbs: 0.02 },
  '酸奶': { protein: 0.03, fat: 0.02, carbs: 0.07 },

  // 六、坚果与种子
  '杏仁': { protein: 0.26, fat: 0.51, carbs: 0.009 },
  '核桃': { protein: 0.15, fat: 0.65, carbs: 0.14 },
  '芝麻': { protein: 0.19, fat: 0.05, carbs: 0.23 },

  // 七、肉类
  '瘦牛肉': { protein: 0.21, fat: 0.03, carbs: 0.00 },
  '猪肉': { protein: 0.17, fat: 0.29, carbs: 0.01 },
  '鸡肉': { protein: 0.23, fat: 0.01, carbs: 0.00 },

  // —— 扩展更细分/常见食材 ——
  // 畜禽与水产
  '鸡腿肉(去皮)': { protein: 0.18, fat: 0.08, carbs: 0.00 },
  '猪里脊': { protein: 0.20, fat: 0.06, carbs: 0.00 },
  '牛里脊': { protein: 0.21, fat: 0.05, carbs: 0.00 },
  '鸭胸(去皮)': { protein: 0.19, fat: 0.06, carbs: 0.00 },
  '虾': { protein: 0.20, fat: 0.01, carbs: 0.00 },
  '鲈鱼': { protein: 0.18, fat: 0.02, carbs: 0.00 },
  '鳕鱼': { protein: 0.17, fat: 0.006, carbs: 0.00 },
  '带鱼': { protein: 0.16, fat: 0.08, carbs: 0.00 },
  '金枪鱼罐头(水浸)': { protein: 0.23, fat: 0.01, carbs: 0.00 },

  // 豆制品与豆饮
  '北豆腐': { protein: 0.08, fat: 0.05, carbs: 0.02 },
  '嫩豆腐': { protein: 0.048, fat: 0.03, carbs: 0.016 },
  '豆干': { protein: 0.18, fat: 0.10, carbs: 0.07 },
  '豆浆': { protein: 0.036, fat: 0.018, carbs: 0.029 },

  // 更多蔬菜
  '生菜': { protein: 0.014, fat: 0.002, carbs: 0.022 },
  '黄瓜': { protein: 0.008, fat: 0.002, carbs: 0.021 },
  '土豆': { protein: 0.026, fat: 0.002, carbs: 0.17 },
  '南瓜': { protein: 0.01, fat: 0.002, carbs: 0.065 },
  '玉米(鲜)': { protein: 0.04, fat: 0.012, carbs: 0.19 },
  '洋葱': { protein: 0.011, fat: 0.001, carbs: 0.086 },
  '蘑菇': { protein: 0.031, fat: 0.003, carbs: 0.033 },
  '香菇(鲜)': { protein: 0.022, fat: 0.003, carbs: 0.067 },
  '芹菜': { protein: 0.011, fat: 0.002, carbs: 0.03 },
  '茄子': { protein: 0.011, fat: 0.002, carbs: 0.057 },

  // 更多水果
  '草莓': { protein: 0.008, fat: 0.003, carbs: 0.077 },
  '梨': { protein: 0.004, fat: 0.001, carbs: 0.152 },
  '葡萄': { protein: 0.006, fat: 0.002, carbs: 0.17 },
  '西瓜': { protein: 0.006, fat: 0.002, carbs: 0.076 },
  '菠萝': { protein: 0.005, fat: 0.001, carbs: 0.13 },
  '牛油果': { protein: 0.02, fat: 0.15, carbs: 0.09 },

  // 更多谷物与加工主食（以干品或常见基准）
  '糙米': { protein: 0.075, fat: 0.02, carbs: 0.77 },
  '藜麦(干)': { protein: 0.14, fat: 0.06, carbs: 0.64 },
  '荞麦(干)': { protein: 0.13, fat: 0.034, carbs: 0.715 },
  '黑米(干)': { protein: 0.085, fat: 0.03, carbs: 0.75 },
  '面条(干)': { protein: 0.12, fat: 0.015, carbs: 0.74 },
  '全麦面包': { protein: 0.09, fat: 0.04, carbs: 0.49 },
  '玉米片(早餐)': { protein: 0.075, fat: 0.01, carbs: 0.84 },

  // 更多乳制品
  '脱脂牛奶': { protein: 0.034, fat: 0.002, carbs: 0.05 },
  '低脂酸奶': { protein: 0.036, fat: 0.01, carbs: 0.06 },
  '希腊酸奶': { protein: 0.09, fat: 0.04, carbs: 0.04 },

  // 坚果与种子补充
  '腰果': { protein: 0.18, fat: 0.44, carbs: 0.30 },
  '开心果': { protein: 0.20, fat: 0.45, carbs: 0.28 },
  '花生': { protein: 0.26, fat: 0.49, carbs: 0.16 },

  // 油脂与糖类（仅供能参考）
  '橄榄油': { protein: 0.00, fat: 1.00, carbs: 0.00 },
  '白砂糖': { protein: 0.00, fat: 0.00, carbs: 1.00 },
  '蜂蜜': { protein: 0.003, fat: 0.00, carbs: 0.82 },

  // 鸡蛋分部
  '蛋清': { protein: 0.11, fat: 0.00, carbs: 0.01 },
  '蛋黄': { protein: 0.16, fat: 0.32, carbs: 0.03 }
};
